:root {
    --parchment: #f4e9d8;
    --parchment-dark: #d4c4a8;
    --ink: #2c2416;
    --gold: #c9a961;
    --gold-dark: #9d7d3a;
    --burgundy: #6b2737;
    --copper: #b87333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background-color: var(--parchment);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.7;
}

/* Texture de parchemin */
.parchment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(44, 36, 22, 0.015) 2px,
            rgba(44, 36, 22, 0.015) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Bouton retour */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--gold);
    color: var(--burgundy);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.back-button:hover {
    background: var(--gold);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.header {
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 2;
    border-bottom: 2px solid var(--gold);
    background: linear-gradient(to bottom, var(--parchment) 0%, rgba(201, 169, 97, 0.05) 100%);
}

.ornament {
    font-size: 2.5rem;
    color: var(--gold);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.ornament-left {
    left: 20px;
}

.ornament-right {
    right: 20px;
}

.title-container {
    max-width: 900px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--burgundy);
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(201, 169, 97, 0.3);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: var(--gold-dark);
    font-style: italic;
    letter-spacing: 2px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

/* Grille des catégories de boutiques */
.shop-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.shop-category-card {
    background: linear-gradient(135deg, #fff 0%, var(--parchment-dark) 100%);
    border: 3px solid var(--copper);
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.3), transparent);
    transition: left 0.5s ease;
}

.shop-category-card:hover::before {
    left: 100%;
}

.shop-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(184, 115, 51, 0.4);
    border-color: var(--gold);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.shop-category-card:hover .category-icon {
    filter: grayscale(0%);
    transform: scale(1.15) rotate(5deg);
}

.shop-category-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.shop-category-card p {
    font-size: 1.05rem;
    color: var(--gold-dark);
    line-height: 1.6;
}

/* Animation en cascade */
.shop-category-card:nth-child(1) { animation-delay: 0.1s; }
.shop-category-card:nth-child(2) { animation-delay: 0.15s; }
.shop-category-card:nth-child(3) { animation-delay: 0.2s; }
.shop-category-card:nth-child(4) { animation-delay: 0.25s; }
.shop-category-card:nth-child(5) { animation-delay: 0.3s; }
.shop-category-card:nth-child(6) { animation-delay: 0.35s; }
.shop-category-card:nth-child(7) { animation-delay: 0.4s; }
.shop-category-card:nth-child(8) { animation-delay: 0.45s; }
.shop-category-card:nth-child(9) { animation-delay: 0.5s; }

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    z-index: 2;
}

.divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 20px;
}

.footer p {
    font-size: 0.95rem;
    color: var(--gold-dark);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .back-button {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .header {
        padding: 70px 20px 30px;
    }

    .main-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .ornament {
        font-size: 1.8rem;
    }

    .ornament-left {
        left: 10px;
    }

    .ornament-right {
        right: 10px;
    }

    .shop-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-category-card {
        padding: 30px 20px;
    }

    .category-icon {
        font-size: 3rem;
    }

    .shop-category-card h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .shop-category-card {
        padding: 25px 15px;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .shop-category-card h2 {
        font-size: 1.2rem;
    }

    .shop-category-card p {
        font-size: 0.95rem;
    }
}